.client-container {
    width: 100%;
    height: 100%;
    /* 实现页面垂直水平居中 */
    display: flex;
    justify-content: center;
    align-items: center;  
    /* 实现背景模糊效果 */
    backdrop-filter: blur(5px); 
}

.client-container .main {
    width: 1000px;
    height: 800px;
    display: flex;
}

.client-container .main .left {
    width: 280px;
    background-color: grey;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;

}

.client-container .main .right {
    width: 720px;
    padding: 0px 20px;
    background-color: rgb(255, 255, 255, 0.9);
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.client-container .main .left .user {
    width: 280px;
    height: 90px;
    display: flex;
}

.client-container .main .left .user .avatar-img img{
    width: 50px;
    height: 50px;
    margin: 20px 20px;
}

.client-container .main .left .user .user-name {
    height: 90px;
    line-height: 90px;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.client-container .main .left .search{
    height: 32px;
    width: 240px;
    margin: 0px 20px;
    display: flex;
}

.client-container .main .left .search input{
    width: 206px;
    height: 100%;
    line-height: 32px;
    font-size: 16px;
    /* 去除边框和轮廓线 */
    border: none;
    outline: none;
    background-color:rgb(38,41,46);
    padding-left: 10px;
    border-radius: 4px;
}

.client-container .main .left .search button{
    width: 32px;
    height: 100%;
    /* 去除边框和轮廓线 */
    border: none;
    outline: none;
    background-image: url(../img/搜索.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center center;
}

.client-container .main .left .search button:active{
    background-color: grey;
}

.client-container .main .left .tab {
    height: 60px;
    /* background-color: aqua; */
    display: flex;
    align-items: center;
    border-bottom: 3px solid black;
}

.client-container .main .left .tab .tab-session {
    height: 100%;
    width: 50%;
    background-image: url(../img/对话.png);
    background-repeat: no-repeat;
    background-size: 35px 35px;
    background-position: center center;
}

.client-container .main .left .tab .tab-friend {
    height: 100%;
    width: 50%;
    background-image: url(../img/用户2.png);
    background-repeat: no-repeat;
    background-size: 35px 35px;
    background-position: center center;
}

.client-container .main .left .lists {
    height: 618px;
    /* 滚动条设置 */
    overflow: auto;
}
.client-container .main .left .lists .list {
    height: 60px;
    color: grey;
    display: flex;
    border-bottom: 3px solid black;
}

.client-container .main .left .lists .selected {
    background-color: rgb(46, 54, 65);
}

.client-container .main .left .lists .list .session-left {
    width: 70px;
    height: 100%;
    border-radius: 10px;
}

.client-container .main .left .lists .list .session-left img{
    width: 40px;
    height: 40px;
    margin: 10px 20px 10px 15px;
    border-radius: 5px;
}

.client-container .main .left .lists .list .session-right {
    height: 40px;
    width: 210px;
    margin: 10px 5px;
    display: block;
}

.client-container .main .left .lists .list .session-right h3 {
    height: 25px;
    line-height: 25px;
    font-size: 18px;
    color: white;
}

.client-container .main .left .lists .list .session-right p {
    height: 15px;
    line-height: 15px;
    font-size: 12px;
    color: white;
}

.client-container .main .left .lists .list .friend-left {
    width: 70px;
    height: 100%;
    border-radius: 10px;
}

.client-container .main .left .lists .list .friend-left img{
    width: 40px;
    height: 40px;
    margin: 10px 20px 10px 15px;
    border-radius: 5px;
}

.client-container .main .left .lists .list .friend-right {
    height: 40px;
    width: 220px;
    margin: 10px 0px;
    display: block;
}



.client-container .main .left .lists .list .friend-right h3 {
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    color: white;
}

/* 隐藏效果 */
.hide {
    display: none;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
}


/* 右侧样式 */
.client-container .main .right .title {
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

.client-container .main .right .message-show {
    height: 560px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    overflow: auto;
}

.client-container .main .right .message-show .message {
    width: 100%;
    margin-top: 10px;
    display: flex;
}

/* 子元素靠左 */
.client-container .main .right .message-show .message-left {
    justify-content: start;
}

/* 子元素靠右 */
.client-container .main .right .message-show .message-right {
    justify-content: end;
}

.client-container .main .right .message-show .message .box{
    width: 400px;
}

.client-container .main .right .message-show .message .box h4{
    font-weight: normal;
    height: 22px;
    line-height: 22px;
    font-size: 16px;
}

.client-container .main .right .message-show .message .box p{
    padding: 10px;
    font-size: 18px;
    border-radius: 5px;
}

.client-container .main .right .message-show .message-left .box p{
    background-color: orange;
}

.client-container .main .right .message-show .message-right .box p{
    background-color: greenyellow;
}

.client-container .main .right .message-input textarea {
    display: block;
    width: 100%;
    height: 145px;
    font-size: 18px;
    background-color: rgb(238, 238, 238, 0.9);
    border: none;
    outline: none;
    resize: none;
    margin-top:5px;
    padding: 10px;
}

.client-container .main .right .ctrl {
    height: 35px;
    display: flex;
    justify-content: flex-end;
}

.client-container .main .right .ctrl button {
    height: 35px;
    width: 100px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    /* 鼠标放上变小手 */
    cursor: pointer;
}

.client-container .main .right .ctrl button:active {
    background-color: grey;
    color: white;
}

